package com.ruoyi.ai_config.domain;

import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * AI提示词模板对象 ai_prompt_templates
 * 
 * @author lzk
 * @date 2025-06-25
 */
@Schema(description = "AI提示词模板对象")
public class AiPromptTemplates extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 主键 */
    @Schema(title = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 配置ID */
    @Schema(title = "配置ID")
    @Excel(name = "配置ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long configId;

    /** 模板名称 */
    @Schema(title = "模板名称")
    @Excel(name = "模板名称")
    private String templateName;

    /** 提示词内容 */
    @Schema(title = "提示词内容")
    @Excel(name = "提示词内容")
    private String promptContent;

    /** 模板类型：system-系统提示词，user-用户提示词 */
    @Schema(title = "模板类型：system-系统提示词，user-用户提示词")
    @Excel(name = "模板类型：system-系统提示词，user-用户提示词")
    private String templateType;

    /** 模板变量定义 */
    @Schema(title = "模板变量定义")
    @Excel(name = "模板变量定义")
    private String variables;

    /** 创建者 */
    @Schema(title = "创建者")
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    @Excel(name = "创建时间")
    private LocalDate createdTime;

    /** 更新者 */
    @Schema(title = "更新者")
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    @Excel(name = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志 */
    @Schema(title = "删除标志")
    private String delFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }


    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }


    public void setPromptContent(String promptContent) 
    {
        this.promptContent = promptContent;
    }

    public String getPromptContent() 
    {
        return promptContent;
    }


    public void setTemplateType(String templateType) 
    {
        this.templateType = templateType;
    }

    public String getTemplateType() 
    {
        return templateType;
    }

    public void setVariables(String variables) 
    {
        this.variables = variables;
    }

    public String getVariables() 
    {
        return variables;
    }


    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configId", getConfigId())
            .append("templateName", getTemplateName())
            .append("promptContent", getPromptContent())
            .append("templateType", getTemplateType())
            .append("variables", getVariables())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
